#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<math.h>

int main() {

    double a, b, c;
    scanf("%lf %lf %lf", &a, &b, &c);
    if (a) {
        double d = b * b - 4 * a * c;
        if (d > 0) {
            printf("x1=%.2lf;x2=%.2lf", (-b - sqrt(d)) / 2 * a, (-b + sqrt(d)) / 2 * a);
        }
        else if (d == 0)
            printf("x1=x2=%.2lf", (-b + sqrt(d)) / 2 * a);
        else if (d < 0) {
            double r = -b / (2 * a);
            double i = sqrt(-d) / (2 * a);
            printf("x1=%.1lf-%.1lfi;x2=%.1lf-%.1lfi", r, i, r, i);
        }
    }
        else
            printf("Not quadratic equation");

    return 0;
}